home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 10521 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: dawn.mmm.com!news
  2. From: kjhopps@mmm.com (Kevin J Hopps)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Call to new fails
  5. Date: 8 Mar 1996 13:42:01 GMT
  6. Organization: 3M - St. Paul, MN  55144-1000 US
  7. Message-ID: <4hpdf9$k1d@dawn.mmm.com>
  8. References: <4hmp5h$62d@newsbf02.news.aol.com>
  9. Reply-To: kjhopps@mmm.com
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. TheWzrdOz (thewzrdoz@aol.com) wrote:
  13. > I've a call to new that fails.  I've checked and there is plenty of memory
  14. > available for the call.  I have cout statements before and after the call,
  15. > and another in the classes CTOR, and I don't see the output from the CTOR.
  16. >  This is a DOS based product, so I can't debug it.  Help!  Why would the
  17. > new fail?
  18.  
  19. If the heap gets corrupted, subsequent calls to new or delete can cause
  20. unpredictable results.  Your problem might be in code executed [much]
  21. earlier than the call that fails.
  22. --
  23. Kevin J. Hopps                  e-mail: kjhopps@mmm.com
  24. 3M Company                      phone:  (612) 737-4643
  25. 3M Center, Bldg. 235-2D-57      fax:    (612) 737-2700
  26. St. Paul, MN 55144-1000         Opinions are my own.  I don't speak for 3M.
  27.     But 3M speaks for me -- I did not write the following line:
  28.  
  29. Opinions expressed herein are my own and may not represent those of 3M.
  30.